<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/base.jsp"%>
<%@ include file="/module/taglibs.jsp"%>
<%@ include file="/module/nocache.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>专家评审</title>
<%@ include file="/module/js.jsp"%>
</head>
<body>
	<form action="#" name="Form" id="Form" method="post">
		<table cellpadding="1" cellspacing="1" border="0">
			<tr>
			    <td><input type="button" id="btnQuery" value="查询"
					class="inputButton" /></td>
				  <td><input type="button" id="btnExport" value="导出"
					class="inputButton" /></td>
			</tr>
		</table>
		 <table cellpadding="1" cellspacing="1">
			<tr>
			    <td>审批结果：</td>
				<td><select id="tjjg" name="tjjg" class="selectList2">
				 <option value="">全部</option>
				  <option value="推荐">推荐</option>
				  <option value="不推荐">不推荐</option>
				</select>
				</td>
				<td>论文题目：</td>
				<td><input type="text" name="subject" id="subject"  autocomplete="off" class="inputText2" /></td>
				<td>姓名：</td>
				<td><input type="text" name="empname" id="empname"  autocomplete="off" class="inputText2" /></td>
				<td>获奖级别：</td>
				<td><input type="text" name="hjjb" id="hjjb"  autocomplete="off" class="inputText2" /></td>
			</tr>
		</table>
		<br/>
     	<table id="dg" class="easyui-datagrid "  style="width:90%;"
			data-options="pagination:true,collapsible:true,url:'${basePath}/teacherReviewGroup/teacherManagerThesisReviewList',method:'post',remoteSort:true">
			<thead>
				<tr>
<!-- 					<th data-options="field:'lwid',checkbox:true,width:80,align:'center'"></th> -->
					<th data-options="field:'empname',nowrap:true,width:200,align:'center',sortable:true,formatter:formater">姓名</th>
					<th data-options="field:'zgh',nowrap:true,width:200,align:'center',sortable:true">职工号</th>
					<th data-options="field:'subject',nowrap:true,width:150,align:'center',sortable:true">论文题目</th>
					<th data-options="field:'lwsj',nowrap:true,width:300,align:'center',sortable:true,formatter:formatDate">论文时间</th>
					<th data-options="field:'tjjg',nowrap:true,width:150,align:'center',sortable:true">推荐结果</th>
				    <th data-options="field:'hjjb',nowrap:true,width:150,align:'center',sortable:true">获奖级别</th>
				    <th data-options="field:'createtime',nowrap:true,width:200,align:'center',sortable:true,formatter:formatDate">提交时间</th>
				</tr>
			</thead>
		</table>
	</form>
	<script>
	 function formater(value, row, index) {
	       return "<a href='${basePath}/teacherReviewGroup/teacherManagerThesisReviewForWard?lwid=" + row.lwid +"'>" + row.empname + "</a>";
	  } 
	</script>
	<script type="text/javascript">
		$(document).ready(
			function() {
			//查询
			$('#btnQuery').click(function(){
				$('#dg').datagrid('load',{
					empname:$("#empname").val(),tjjg:$("#tjjg").val(),subject:$("#subject").val(),hjjb:$("#hjjb").val()
				});
			});
		// 导出
		$('#btnExport').on('click', function(){
			   layer.confirm("您确定要导出吗?", function(index){
				   //var rows = $("#dg").datagrid("getRows"); {icon: 3, title:'提示',skin:'layer-ext-moon'},
				  // var bodyData = JSON.stringify(rows);  //转成json字符串
				   // $("#bodyData").val(JSON.stringify(rows));
					    document.Form.action = "${basePath}/teacherReviewGroup/exportManagerTeacherThesisReview";
						document.Form.submit();
						layer.close(index);
     		 });
			});
			});
	 
		if("${msg}"!=""){
		   layer.alert("${msg}", {icon: 6});
		}
	</script>
</body>
</html>
